package com.unytech.watersoil.common;

/**
 * 这里面记录的是全局的键值对数据
 * @author LONG
 *
 */
public interface Globals {
	
	/**
	 * 超级管理员名称
	 */
	public final String KINGNAME = "king power";
	/**
	 * 超级管理员的密码
	 */
	public final String KINGPASSWORD = "21232F297A57A5A743894A0E4A801FC3";
	
	/**
	 * 跟权限的ID，所有一级菜单的父ID，但是Permission.xml中的根节点并不是此变量，注意不同
	 */
	public final String ROOTPERMISSIONID = "000000000000";
	
	
	
	    public final String UPLOAD_FILE="/upload/file";
	    public final String UPLOAD_Images = "/upload/images";
	    public final String UPLOAD_YY = "/upload/yy";
	    public final Long DEFAULT_MAX_PERSONAL_FOLDER_SIZE=new Long(5 * 1024 * 1024);

	    public final Long UPLOADE_MAX_SIZE_PER_ONCE=new Long(2 * 1024 * 1024);

	    //action默认后缀
	    public final String ACTION_SUFFIX=".action";
	    //默认分页尺寸
	    public final int DEFAULT_PAGESIZE=50;
	    //User实例存放于session的key
	    public final String USER_KEY="com.szy.org.UT_SITE_USER_KEY";
	    //存放用户的所有相关权限的Set的key
	    public final String USER_ACTIONURLS_KEY="USER_ACTIONURLS_KEY";
	    //管理员登陆验证码存放于session的key
	    public final String ADMIN_CONFIRMCODE_KEY="com.szy.org.ADMIN_CONFIRMCODE_KEY";
	    //用户数据容器存放于session的key
	    public final String USER_CONTAINER_KEY="com.szy.util.web.USER_CONTAINER_KEY";
	    //存放回退URI于request的key，






	    public final String BACK_URI_KEY="backUri";

	    public final String DATASTRING_ROW_DELIMS="/~~/";
	    public final String DATASTRING_COL_DEIMS="/%%/";

	    //存放request里的请求参数
	    public final String CONTEXT_PARAMETER_KEY="CONTEXT.PARAMETER.KEY";
	    public final String REQUEST_URI_KEY="REQUEST.URI.KEY";
	    public final String TEMP_KEY="c:/mailTempXX";

	    public final String ITEM_ID_KEY="item_id_key_in_session";
	    public final String BACK_URL_KEY="back_url_key_in_request";
	    public final String MODEL_KEY="model_key_in_request";

	    /**
	     * page paramter
	     */
	    public final String PAGE_NAME="curPage";
	    public final String PAGE_LINE_NAME="__pageLine";
	    public final String VO_CLASS_NAME="voClazz";
	    public final String REQUEST_NAME="request";
	    public final int PAGE_MAX_NUM=10;
	    public final int PAGE_MAX_NUM24=48;
	    public final int PAGE_MAX_NUM12=24;
	    public final String ORDERBY_NAME = "orderby";
	    public final String PAGE_PROPERTY = "pageProperty";
	    public final String DETACHEDCRITERIA_NAME = "detachedCriteria";
	    public final String SQL = "sql";
	    
	    //request params
	    public final String REQUEST_PARAMS = "requestParams";

	    //permission property
	    public final String PERMISSION_KEY_IN_SESSION = "userRootMenuItem";


	}

